<?php
/**
 *Modelo de banner
 *@author Luis Gabriel Rodriguez <luisgabriel84@gmail.com>
 */
class Banner extends AppModel {

	var $name = 'Banner';
         /**
        * @var array Reglas de validacion
        * @access public
        */
	var $validate = array(
		'nombre_banner' => array('notempty'),
		'filename' => array('notempty'),
		'state_id' => array('numeric')
	);

	 /**
        * @var array Mapeo relacional
        * @access public
        */
	var $belongsTo = array(
		'State' => array(
			'className' => 'State',
			'foreignKey' => 'state_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

}
?>